package com.evola.dbsm.commands
{
	import com.evola.dbsm.service.impl.ScriptService;
	import com.evola.dbsm.view.script.list.ScriptListEvent;
	
	import org.robotlegs.mvcs.Command;
	
	public class LoadScriptsCommand extends Command
	{
		
		[Inject]
		public var event : ScriptListEvent;
		
		[Inject]
		public var service : ScriptService;
		
		override public function execute():void{
			
			service.loadScripts(event.project);			
		}
	}
}